<%@page import="java.util.ArrayList"%>
<%@page import="entity.PhotoEntity"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>商品详情</title>

<!-- 用于转跳之后的路径恢复 -->
<%
	String path = request.getRequestURI();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<base href="<%=basePath%>">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style/adminStyle.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-3.1.0.js"></script>
</head>
<body>
<c:set var="good" value="${good }"></c:set>
<c:set value="${type }" var="type"></c:set>
 <div class="wrap">
  <div class="page-title">
    <span class="modular fl"><i class="order"></i><em> 商品编号：${good.goodId} </em></span>
  </div>
  <dl class="orderDetail">
   <dt class="order-h">商品详情</dt>
   <dd>
    <ul>
     <li>
      <span class="h-cont h-right">商品名称：</span>
      <span class="h-cont h-left">${good.goodName }</span>
     </li>
     <li>
      <span class="h-cont h-right">状态：</span>
      <span class="h-cont h-left">${good.goodStata }</span>
     </li>
     
      <li>
      <span class="h-cont h-right">类型：</span>
      <span class="h-cont h-left"> ${type } </span>
     </li>
     
     <li>
      <span class="h-cont h-right">标配价：</span>
      <span class="h-cont h-left">${good.goodPrice }元</span>
     </li>
     
    </ul>
   </dd>
   
    <dd style="padding:1em 0;">
    <span><b>版本：</b></span>
    
    <c:forEach items="${parameterList }" var="parameterList">
    	<c:if test="${parameterList.fparId=='par001'}">
    		<span>${parameterList.parName } &nbsp&nbsp</span>
    	</c:if>
    	
    </c:forEach>
    
    
   </dd>
   
   <dd style="padding:1em 0;">
    <span><b>套餐：</b></span>
    <c:forEach items="${parameterList }" var="parameterList">
    	<c:if test="${parameterList.fparId=='par003'}">
    		<span>${parameterList.parName } &nbsp&nbsp</span>
    	</c:if>
    	
    </c:forEach>
    
    
   </dd>
   
   <dd style="padding:1em 0;">
    <table class="list-style">
    <span><b>颜色：</b></span>
    <br/>
     <tr>
      <th>缩略图</th>
      <th>颜色</th>
     </tr>
    
     <tr>
      <td>
      	<c:forEach items="${photoList }" var="photolist">
      	<img src="${photolist.way }" class="thumbnail"/>
      	</c:forEach>
      </td>
       <td>
       <c:forEach items="${parameterList }" var="parameterList" varStatus="loop">
     	<c:if test="${parameterList.fparId=='par002' }">
      ${parameterList.parName }
      </c:if>
     </c:forEach>
     </td>
     </tr>
     
     <tr>
      
     </tr>
    </table>
   </dd>
   
   <dd style="padding:1em 0;">
    <span><b>商品介绍：</b></span>
    <span> ${good.goodIntroduce }</span>
   </dd>
   
   <dd>
      <!-- Operation -->
	  <div class="BatchOperation">
	   <input type="button" value="返回" class="btnStyle" onclick="javascript:window.history.back();"/>
	  </div>
   </dd>
  </dl>
 </div>
</body>
</html>